<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#introduce" aria-controls="introduce" role="tab" data-toggle="tab">小程序设置</a></li>
            <li role="presentation"><a href="#regulation" aria-controls="regulation" role="tab" data-toggle="tab">支付设置</a></li>
            <li role="presentation"><a href="#notice" aria-controls="notice" role="tab" data-toggle="tab">分享设置</a></li>
            <li role="presentation"><a href="#explain" aria-controls="explain" role="tab" data-toggle="tab">首页设置</a></li>
            <li role="presentation"><a href="#trade_area" aria-controls="trade_area" role="tab" data-toggle="tab">商圈设置</a></li>
            <li role="presentation"><a href="#message" aria-controls="message" role="tab" data-toggle="tab">消息模板</a></li>
            <li role="presentation"><a href="#exceptions" aria-controls="exceptions" role="tab" data-toggle="tab">免责条款</a></li>
        </ul>
    </div>
    <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <div class="tab-content">
            <!--小程序配置-->
            <div role="tabpanel" class="tab-pane active" id="introduce">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Appid')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-appid" class="form-control" name="row[appid]" type="text" value="{$row.appid|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Secret')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-secret" class="form-control" name="row[secret]" type="text" value="{$row.secret|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Navtext')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="navtextList" item="vo"}
                                <label for="row[navtext]-{$key}"><input id="row[navtext]-{$key}" name="row[navtext]" type="radio" value="{$key}" {in name="key" value="$row.navtext"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Theme_color')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="form-inline">
                                <input id="c-theme_color" class="form-control" size="50" name="row[theme_color]" type="text" value="{$row.theme_color|htmlentities}">
                                <span><button type="button" id="colorpicker" class="btn btn-danger colorpicker" data-input-id="c-theme_color"><i class="fa fa-eyedropper"></i> {:__('选择颜色')}</button></span>
                                <span class="msg-box n-right" for="c-theme_color"></span>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Support')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-support" class="form-control" name="row[support]" type="text" value="{$row.support|htmlentities}">
                        </div>
                    </div>
                </div>
            </div>
            <!--支付设置-->
            <div role="tabpanel" class="tab-pane" id="regulation">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Mch_id')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-mch_id" class="form-control" name="row[mch_id]" type="text" value="{$row.mch_id|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Key')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-key" class="form-control" name="row[key]" type="text" value="{$row.key|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Cert_path')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-cert_path" class="form-control" size="50" name="row[cert_path]" type="text" value="{$row.cert_path|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-cert_path" class="btn btn-danger faupload" data-input-id="c-cert_path" data-preview-id="p-cert_path"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-cert_path" class="btn btn-primary fachoose" data-input-id="c-cert_path" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Key_path')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-key_path" class="form-control" size="50" name="row[key_path]" type="text" value="{$row.key_path|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-key_path" class="btn btn-danger faupload" data-input-id="c-key_path" data-preview-id="p-key_path"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-key_path" class="btn btn-primary fachoose" data-input-id="c-key_path" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--分享设置-->
            <div role="tabpanel" class="tab-pane" id="notice">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Share_img')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-share_img" class="form-control" size="50" name="row[share_img]" type="text" value="{$row.share_img|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-share_img" class="btn btn-danger faupload" data-input-id="c-share_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-share_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-share_img" class="btn btn-primary fachoose" data-input-id="c-share_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-share_img"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-share_img"></ul>
                        </div>
                    </div>
                </div>
            </div>
            <!--首页设置-->
            <div role="tabpanel" class="tab-pane" id="explain">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Welcome_img')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-welcome_img" class="form-control" size="50" name="row[welcome_img]" type="text" value="{$row.welcome_img|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-welcome_img" class="btn btn-danger faupload" data-input-id="c-welcome_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-welcome_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-welcome_img" class="btn btn-primary fachoose" data-input-id="c-welcome_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-welcome_img"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-welcome_img"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_unit_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="memberUnitShowList" item="vo"}
                                <label for="row[member_unit_show]-{$key}"><input id="row[member_unit_show]-{$key}" name="row[member_unit_show]" type="radio" value="{$key}" {in name="key" value="$row.member_unit_show"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="memberShowList" item="vo"}
                                <label for="row[member_show]-{$key}"><input id="row[member_show]-{$key}" name="row[member_show]" type="radio" value="{$key}" {in name="key" value="$row.member_show"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_detail_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="memberDetailShowList" item="vo"}
                                <label for="row[member_detail_show]-{$key}"><input id="row[member_detail_show]-{$key}" name="row[member_detail_show]" type="radio" value="{$key}" {in name="key" value="$row.member_detail_show"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('News_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="newsShowList" item="vo"}
                                <label for="row[news_show]-{$key}"><input id="row[news_show]-{$key}" name="row[news_show]" type="radio" value="{$key}" {in name="key" value="$row.news_show"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_show')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="businessShowList" item="vo"}
                                <label for="row[business_show]-{$key}"><input id="row[business_show]-{$key}" name="row[business_show]" type="radio" value="{$key}" {in name="key" value="$row.business_show"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Home_mode')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="homeModeList" item="vo"}
                                <label for="row[business_show]-{$key}"><input id="row[home_mode]-{$key}" name="row[home_mode]" type="radio" value="{$key}" {in name="key" value="$row.home_mode"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('News_cat')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-news_cat" data-rule="required" data-source="wdsxh/config/news_category" class="form-control selectpage" name="row[news_cat]" type="text" value="{$row.news_cat|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Uc_background_img')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-uc_background_img" class="form-control" size="50" name="row[uc_background_img]" type="text" value="{$row.uc_background_img|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-uc_background_img" class="btn btn-danger faupload" data-input-id="c-uc_background_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-uc_background_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-uc_background_img" class="btn btn-primary fachoose" data-input-id="c-uc_background_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-uc_background_img"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-uc_background_img"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('首页视频')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-index_video" class="form-control" size="50" name="row[index_video]" type="text" value="{$row.index_video|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-index_video" class="btn btn-danger faupload" data-input-id="c-index_video" data-mimetype="*" data-multiple="false" data-preview-id="p-index_video"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-index_video" class="btn btn-primary fachoose" data-input-id="c-index_video"  data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-index_video"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-index_video"></ul>
                        </div>
                    </div>
                </div>
            </div>
            <!--商圈设置-->
            <div role="tabpanel" class="tab-pane" id="trade_area">
                <div class="panel-body">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_img1')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-business_img1" class="form-control" size="50" name="row[business_img1]" type="text" value="{$row.business_img1|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-business_img1" class="btn btn-danger faupload" data-input-id="c-business_img1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_img1"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-business_img1" class="btn btn-primary fachoose" data-input-id="c-business_img1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-business_img1"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-business_img1"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_img2')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-business_img2" class="form-control" size="50" name="row[business_img2]" type="text" value="{$row.business_img2|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-business_img2" class="btn btn-danger faupload" data-input-id="c-business_img2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_img2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-business_img2" class="btn btn-primary fachoose" data-input-id="c-business_img2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-business_img2"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-business_img2"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_img3')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-business_img3" class="form-control" size="50" name="row[business_img3]" type="text" value="{$row.business_img3|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-business_img3" class="btn btn-danger faupload" data-input-id="c-business_img3" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_img3"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-business_img3" class="btn btn-primary fachoose" data-input-id="c-business_img3" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-business_img3"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-business_img3"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_foreign')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="businessForeignList" item="vo"}
                                <label for="row[business_foreign]-{$key}"><input id="row[business_foreign]-{$key}" name="row[business_foreign]" type="radio" value="{$key}" {in name="key" value="$row.business_foreign"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_audit')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="radio">
                                {foreach name="businessAuditList" item="vo"}
                                <label for="row[business_audit]-{$key}"><input id="row[business_audit]-{$key}" name="row[business_audit]" type="radio" value="{$key}" {in name="key" value="$row.business_audit"}checked{/in} /> {$vo}</label>
                                {/foreach}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--消息模板-->
            <div role="tabpanel" class="tab-pane" id="message">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Initiation_admin')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-initiation_admin" class="form-control" name="row[initiation_admin]" type="text" value="{$row.initiation_admin|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Initiation_audit')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-initiation_audit" class="form-control" name="row[initiation_audit]" type="text" value="{$row.initiation_audit|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Initiation_success')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-initiation_success" class="form-control" name="row[initiation_success]" type="text" value="{$row.initiation_success|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_new')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-activity_new" class="form-control" name="row[activity_new]" type="text" value="{$row.activity_new|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_apply')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-activity_apply" class="form-control" name="row[activity_apply]" type="text" value="{$row.activity_apply|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_start')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-activity_start" class="form-control" name="row[activity_start]" type="text" value="{$row.activity_start|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_expiretime')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-member_expiretime" class="form-control" name="row[member_expiretime]" type="text" value="{$row.member_expiretime}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_appeal')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-member_appeal" class="form-control" name="row[member_appeal]" type="text" value="{$row.member_appeal}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Business_new')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-business_new" class="form-control" name="row[business_new]" type="text" value="{$row.business_new}">
                        </div>
                    </div>
                </div>
            </div>
            <!--免责条款-->
            <div role="tabpanel" class="tab-pane" id="exceptions">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('免责条款')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-exceptions" data-rule="required" class="form-control editor" rows="3" name="row[exceptions]" cols="30">{$row.exceptions|htmlentities}</textarea>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </div>
    </form>
</div>